import request from '@/utils/request'
//查询
export function configureList(query){
  return request({
    url: '/analysiscenter/parserrule/list',
    method:'get',
    params:query
  })
}
//新增
export function configureAdd(data){
  return request({
    url: '/analysiscenter/parserrule/add',
    method:'post',
    data
  })
}
//编辑
export function configureEdit(data){
  return request({
    url: '/analysiscenter/parserrule/edit',
    method:'post',
    data
  })
}
//删除
export function configureDelete(data){
  return request({
    url: '/analysiscenter/parserrule/remove',
    method:'post',
    data
  })
}

//测试
export function configureTest(data){
  return request({
    url: '/analysiscenter/grok/analyseLog',
    method:'post',
    data
  })
}

//表达式
export function expressionList(data){
  return request({
    url: '/analysiscenter/parserrule/getColumnList',
    method:'post',
    data
  })
}
//详情
export function queryDetail(params) {
  return request({
    url: '/analysiscenter/parserrule/getInfo',
    method: 'get',
    params: params
  })
}
//排序(可用性)
export function sortCount(params) {
  return request({
    url: '/analysiscenter/parserrule/getCount',
    method: 'get',
    params: params
  })
}
//停用启用
export function updateStatus(data){
  return request({
    url: '/analysiscenter/parserrule/updateStatus',
    method:'post',
    data
  })
}
